<script setup>
import {
  onLaunch
} from '@dcloudio/uni-app'
import qs from "qs";
import {ref} from "vue";
import {loginWithCustomer} from "./api/api";



const querystr=ref({});
const state = ref({
  business_check_item:''
})

 onLaunch((val)=>{
      // if (uni.getStorageSync('session')) {
      //   console.log('asdflkj')
      //   let session = uni.getStorageSync('session')
      //   if (session.KCC_CUSTINFO.wx_mini_mainpage!=='/pages/placeOrder/index'){
      //     uni.reLaunch({
      //       url:session.KCC_CUSTINFO.wx_mini_mainpage+'?'+`brand_code=${session.BRAND}`
      //     })
      //   }else {
      //     uni.reLaunch({
      //       url:'/pages/placeOrder/index'
      //     })
      //   }
      // }else {
      //   uni.reLaunch({
      //     url:'/pages/home/login/index'
      //   })
      // }
  // uni.reLaunch({
  //   url:'pages/isf/website/home'
  // })
  // querystr.value=val;
  //
  // //扫码进来的参数
  // if(val.scene){
  //   let queryString = decodeURIComponent(val.scene)
  //   let qsStr = qs.parse(queryString);
  //   val.brand_code=qsStr.a;
  //   val.invitor_tel=qsStr.b;
  //   //客户编号
  //   if(qsStr.c){
  //     val.cust_code=qsStr.c;
  //   }
  // }
  //
  // if(val.brand_code){
  //   console.log('进入指定门店:'+val.brand_code)
  //   autoLogin(val);
  // }else{
  //   //跳转到默认店家
  //   autoLogin(val);
  // }

})

</script>
<style lang="scss">
	@import './style/index.scss';

	.nut-tabs__titles {
		padding: 0 !important;
	}

	.nut-tabs.vertical .nut-tabs__titles {
		padding: 0 !important;
	}

	page {
		background-color: #f3f3f3;
	}

	page::-webkit-scrollbar {
		display: none;
	}

	:root {
		--host: red;
	}

	@import '@/uni_modules/sky-nutui/components/sky-nutui/app.scss';
	
	.assign .calendar-top-slot{
		display: none !important;
	}
	.assign .nut-calendar-header{
		display: none !important;
	}
	.install .nut-tabs__titles-item.active{
		background-color: #03ab91 !important;
		color: white !important;
	}
	.install .nut-tabs__titles-item__line{
		display: none !important;
	}
	.calendar-month-day{
		width:50px !important;
		height:50px !important;
	}
	.calendar-month-day-active{
		background-color: #03ab91 !important;
		border-radius: 50% !important;
	}
	
	.nut-button--primary{
		float:right !important;
	}
	
	.order_detail .nut-tabs__content{
		height: 0 !important;
	}
	.fixed-button .nut-cell{
		margin:0 !important;
		padding:13px 0px !important;
	}
  /* #ifdef H5 */
  uni-page-head { display: none; }
  /* #endif */
  uni-modal{
    z-index: 9999999999 !important;
  }
  uni-toast{
    z-index: 9999999999 !important;
  }
  .popover-menu{
    width: 120px;
  }
  .uni-modal__title {
    font-weight: 400;
    font-size: 18px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .uni-modal__bd {
    display: none;
    padding: 1.3em 1.6em 1.3em;
    min-height: 40px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    color: #999999;
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .nut-timepannel{
    padding: 0px !important;
  }
  .uni-modal__textarea{
    font-size: 12px!important;
  }
  .uni-picker-container {
    /* display: none; */
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    box-sizing: border-box;
    z-index: 9999999999999339 !important;
    font-size: 16px;
  }
  .nutui-iconfont{
    font-size: 24px !important;
  }
  @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
</style>